<?php

class Ajax extends CI_Model{
    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
    
    
    function post(){

        $returnData = array();
        $postData = func_get_args();
        
        foreach($postData as $post){
            if ($this->input->post($post) != null){
                $returnData[$post] = $this->input->post($post);
            }
        }
        
        return $returnData;
    }    
}

?>
